<%@ page language="java" contentType="text/html; charset=ISO-8859-1" pageEncoding="ISO-8859-1"%>
<%@ taglib prefix="s" uri="/struts-tags" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<s:include value="/WEB-INF/pages/includes/head.jsp" />
<body class="two-column">
	<div id="container">
		<s:include value="/WEB-INF/pages/includes/header.jsp" /><s:set name="menu" value="'admin'" />
		<s:include value="/WEB-INF/pages/includes/menu.jsp" />
		<div id="cbody">
			<div id="sidebar1">
	  			<s:include value="/WEB-INF/pages/admin/includes/menu.jsp" />
	  		</div>
			<div id="content">
				<h2><s:text name="admin.h2" /></h2>
				<s:if test="list != null && list.size() > 0">
					<table>
					<thead>
						<tr>
							<th><s:text name="forum.name" /></th>
							<th><s:text name="edit" /></th>
							<th><s:text name="permissions" /></th>
							<th><s:text name="delete" /></th>
						</tr>
					</thead>
					<s:iterator value="list" status="i">
						<tr <s:if test="#i.even">class="even"</s:if>>
							<td>
								<s:property value="name" /><br />
								<span><s:property value="description" /></span>
							</td>
							<td>
								<a href="<s:url action="editForum"><s:param name="eid" value="id" /></s:url>"><s:text name="edit" /></a>
							</td>
							<td>
								<a href="<s:url action="listForumPermissions"><s:param name="pid" value="id" /></s:url>"><s:text name="edit" /></a>
							</td>
							<td>
								<a href="<s:url action="removeForum"><s:param name="eid" value="id" /></s:url>"><s:text name="delete" /></a>
							</td>
						</tr>
					</s:iterator>
					</table>
				</s:if>
				<a href="<s:url action="addForum" />"><s:text name="add" /></a>
            </div>
            <div class="floatClear"></div>
		</div>
		<s:include value="/WEB-INF/pages/includes/footer.jsp" />
	</div>
</body>
</html>